package com.yfq;

import com.yfq.springframework.context.ApplicationEvent;

/**
 * @author: yfq
 * @date: 2023/2/1 10:14
 * @description:
 */
public class CustomEvent extends ApplicationEvent {
    private String name;

    /**
     * Constructs a prototypical Event.
     *
     * @param source The object on which the Event initially occurred.
     * @throws IllegalArgumentException if source is null.
     */
    public CustomEvent(Object source, String name) {
        super(source);
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
